package com.episode6;

import java.io.Serializable;

public class CounterBean implements Serializable{
	private static final long serialVersionUID = -4102533299839620231L;
	private int count = 0;
	
	public int getCount() {
		return this.count;
	}
	
	public synchronized void increase() {
		this.count ++;
	}
	
	public synchronized void decrease() {
		this.count --;
	}
}
